-- GENERATED SPELL FOR [Stormforged Warmonger] --


function spell0_30060(pUnit, Event) --@Lightning Charged,Self--
pUnit:FullCastSpellOnTarget(52701,pUnit)
pUnit:RegisterEvent('Sorts_30060', 30319, 1)
end

function spell1_30060(pUnit, Event) --@Stormstrike,n/a--
pUnit:FullCastSpellOnTarget(51876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30060', 12328, 1)
end

function Sorts_30060(pUnit, Event)
local choix_sorts_30060 = math.random(0, 1)
if choix_sorts_30060 == 0 then
pUnit:RegisterEvent('spell0_30060', 1, 1)
end
if choix_sorts_30060 == 1 then
pUnit:RegisterEvent('spell1_30060', 1, 1)
end
end

function mob30060_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30060', math.random(1500, 3000), 1)
end

function mob30060_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30060_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30060_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30060, 1, 'mob30060_Action')
RegisterUnitEvent(30060, 2, 'mob30060_Leave')
RegisterUnitEvent(30060, 3, 'mob30060_Kill')
RegisterUnitEvent(30060, 4, 'mob30060_Die')
